from random import random

a = 10
b = 10
print(a is b)
print(a == b)

c = 2000000
d = 2000000
print(c is d)
print(c == d)

print(id(c))
print(id(d))

# 幂运算符
print(2 ** 8)

print("*" * 30)
print('\t\thahaha')
print("*" * 30)

print(bin(a))
print(bin(-a))

# input()返回的数据类型是str
# mmm  =  int(input('请输入金额'))

# print(mmm%100)

aaa = random()

print(aaa)

print(range(7))
print("@@@" * 20)
for i in range(10):
    if i == 3:
        print()
    elif i == 5:
        pass
    else:
        print(i)

# 精确的
a = 9 / 4
print(r"{}".format(a))

a = ord('A')
print(r"{}".format(a))
a = chr(66)
print(r"{}".format(a))
a = chr(25991)
print(r"{}".format(a))

'ABC'.encode('ascii')

print('#' * 50)
# list=['a','b','ccc']
# a= len(list)
# print(a)
# print(list)
# list.append('d')
# print(list)
# list.insert(1,'aasda')
# print(list)
# list.pop(-1)
# print(list)
# a= len(list)

print('#' * 50)

f = '0123456789'

print(f[5])
print(f[-1])
print(f[3:7])
print(f[3:])
print(f[:7])
print(f[2:-2])
print(f[7:2])
print(f[:-3])
print(f[-1:])
print(f[::-1])
print(f[9:5:-1])

print('#' * 50)

list(range(20))

lit = list(range(30))
print(lit + ['q', 'w', 'e', 'r', 1, 2, 3, 4])
print(set(lit + ['q', 'w', 'e', 'r', 1, 2, 3, 4]))

print(abs(-11))
print(max(lit))
print(hex(1000))
